package com.qing.study.aop;


import org.aspectj.lang.annotation.*;
import org.springframework.core.annotation.Order;

@Aspect
@Order(2)
public class AspectJTest {

	@Pointcut("execution(* com.qing.study.aop.TestBean.say(..))")
	public void pointcut(){}

	@Before("pointcut()")
	public void before(){
		System.out.println("-----------before-------");
	}

	@After("pointcut()")
	public void after(){
		System.out.println("---------after-------");
	};

//	@Around("pointcut()")
//	public void around(){
//		System.out.println("-------------around-----");
//	}
}
